Date Calculations is a scripting addition that adds some useful date and time functions to AppleScript. I’ve also enclosed a couple of sample applets to demonstrate their use. I first wrote this addition for AppleScript 1.0; AppleScript 1.1 has new date/time capabilities which make one or two, but not all, of the functions obsolete.
How to use: you must have AppleScript installed. The addition itself should work with 1.0, but the sample applets were compiled with 1.1, and are unusable under 1.0. Drag the “Date Calculations” file into your Scripting Additions folder. That’s it. Now double-click the “Days until Christmas” applet, and it will tell you the number of days until Christmas. Also try the “NZ Daylight Saving” applet, and it should display a message indicating the current state of Daylight Saving time in New Zealand. You can open these applets with the Script Editor and look at the scripts to see how they work.